<template>
  <div class="outer">
    <div class="inner">
      <LoginTopBar></LoginTopBar>
      <div class="logo">
        <img
          src="	https://yanxuan.nosdn.127.net/static-union/164793255107785e.png"
          alt=""
          class="logo-img"
        />
      </div>
      <div class="btn">
        <div class="phone login">
          <i class="phoneIcon"></i>
          手机号快捷登录
        </div>
        <br />
        <div class="email login">
          <i class="emailIcon"></i>
          邮箱账号登录
        </div>
      </div>
      <div class="footer">
        <div class="footer-inner">
          <p class="wx title">
            <i class="icon wx"></i>
            <span class="name">微信</span>
          </p>
          <p class="qq title">
            <i class="icon qq"></i>
            <span class="name">QQ</span>
          </p>
          <p class="wb title line">
            <i class="icon wb"></i>
            <span class="name">微博</span>
          </p>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'Login',
})
</script>

<script lang="ts" setup>
import LoginTopBar from '@/components/LoginTopBar/index.vue'
</script>

<style scoped lang="scss">
.outer {
  position: relative;
  width: 375px;
  height: 668px;
  background-color: #f2f5f4;
  .inner {
    width: 100%;

    .logo {
      height: 125px;
      .logo-img {
        position: absolute;
        width: 134px;
        height: 45px;
        top: 20%;
        left: 35%;
      }
    }
    .btn {
      position: absolute;
      top: 35%;
      left: 5%;
      height: 160px;
      .login {
        position: relative;
        width: 335px;
        height: 47px;
        line-height: 47px;
        text-align: center;
        margin-bottom: 5px;
        color: #fff;
        font-size: 14px;
        border-radius: 5px;
      }
      .phone {
        background-color: #dd1a21;
        border: 1px solid transparent;
        .phoneIcon {
          width: 20px;
          height: 20px;
          position: absolute;
          top: 25%;
          left: 28%;
          // border: 1px solid #000;
          background-image: url(https://yanxuan-static.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/sprites/login-s5ca4cb2b91-2c606efd24.png?imageView&type=webp);
          background-size: 20px 140px;
          background-position: 0px -23px;
        }
      }
      .email {
        border: 1px solid #dd1a21;
        color: #dd1a21;
        .emailIcon {
          width: 20px;
          height: 20px;
          position: absolute;
          top: 27%;
          left: 30%;
          // border: 1px solid #000;
          background-image: url(https://yanxuan-static.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/sprites/login-s5ca4cb2b91-2c606efd24.png?imageView&type=webp);
          background-size: 20px 140px;
          background-position: 0px 0px;
        }
      }
    }
    .footer {
      width: 375px;
      height: 20px;
      line-height: 20px;
      text-align: center;
      position: absolute;
      display: flex;
      justify-content: space-around;
      top: 90%;
      left: 5%;
      .footer-inner {
        width: 275px;
        display: flex;
        margin-left: -50px;
        .title {
          position: relative;
          display: flex;
          width: 90.6px;
          height: 20px;
          left: 5%;

          font-size: 14px;
          border-right: 1px solid #7f7f7f;
          .icon {
            width: 20px;
            height: 20px;
            line-height: 20px;
            position: absolute;
            left: 13%;
            top: 0;
            background-size: 98%;
          }
          .wx {
            background-image: url('@/asset/loginImg/wx.jpg');
          }
          .qq {
            background-image: url('@/asset/loginImg/QQ.jpg');
          }
          .wb {
            background-image: url('@/asset/loginImg/wb.jpg');
          }
          .name {
            display: inline-block;
            width: 28px;
            height: 16px;
            margin: 0 auto;
            color: #7f7f7f;
            font-size: 14px;
          }
        }
        .line {
          border-right: none;
        }
      }
    }
  }
}
</style>
